package us.kg.kotoriforest.spring.tx.service;

/**
 * @author Kotori rotroutine@163.com
 * @since 2025/1/31
 */
public interface AccountService {
    /**
     * 用户购买书籍的结账操作
     *
     * @param accountId 账户ID
     * @param bookId    书籍ID
     * @param quantity  购买书籍数量
     * @return 结账是否成功
     */
    boolean checkout(int accountId, int bookId, int quantity);
}
